# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=tllist
pkgver=1.0.5
pkgrel=0
pkgdesc="A C header file only implementation of a typed linked list"
url="https://codeberg.org/dnkl/tllist"
arch="all"
license="MIT"
makedepends="meson"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/tllist/archive/$pkgver.tar.gz"
builddir="$srcdir/tllist"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="e8d55a727de56956c6823297e92ba4656292096ece7d22f3d8834b86811ede9b2fdca580bea55e0beda35322f418140357770592d85c0c07ea09c1642c7ff1e9  tllist-1.0.5.tar.gz"
